package com.waves.design.chain;


public class Director extends Approver {


    public Director(String name){
        super(name);
    }

    public void processRequest(PurchaseRequest request){
        if (request.getAmount() < 50000) {
            System.out.println();
        } else {
            this.successor.processRequest(request);
        }
    }

}
